#ifndef DISPLAYMANAGER_H_
#define DISPLAYMANAGER_H_

#include "ATile.h"
#include "Direction.h"
#include <allegro.h>
#include <vector>
using namespace std;

class DisplayManager
{
private:
	vector<ATile *> tilesContainer;
	BITMAP *buffer;
	int windowWidth;
	int windowHeight;
	static DisplayManager *instance;
	
	DisplayManager();
	int getRotation(int dir);
public:
	static DisplayManager *getInstance();
	void init(int w, int h);
	virtual ~DisplayManager();
	void add(ATile *tile);
	void render();
};

#endif /*DISPLAYMANAGER_H_*/
